<?php
$this->breadcrumbs=array(
	'Search',
);
?>
<?php 
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'book-grid',
	'dataProvider'=>$dataProvider,
	'columns'=>array(
		'name',
		'description',
		'author',
		'downloadbookcount',
		array('name'=>'Point','type'=>'raw','value'=>'$data->point()'),
		array('name'=>'Genre','type'=>'raw','value'=>'$data->genre()'),
		array('label'=>'View','class'=>'CLinkColumn','urlExpression'=>'Yii::app()->createUrl("main/viewbook",array(\'idbook\'=>$data->idbook))',),
	),
)); ?>